package com.hall.items.ctrl.vo;

import com.hall.items.aggr.MyWeapon;
import com.hall.items.aggr.MyWeaponEquip;
import com.hall.items.aggr.MyWeaponLevel;

public class MyPlayersStorageItemVO {

	private long id;

	private long userId;

	private long weaponId;

	private String weaponCode;

	private int equipPackNum;

	private int level;

	public MyPlayersStorageItemVO(MyWeapon item, MyWeaponEquip myWeaponEquip,
			MyWeaponLevel myWeaponLevel) {
		id = (long) item.getId();
		userId = (long) item.getPlayerId();
		weaponId = (long) item.getId();
		weaponCode = item.getArchive().getCode();
		equipPackNum = myWeaponEquip != null ? myWeaponEquip.getPackNum() : 0;
		level = myWeaponLevel != null ? myWeaponLevel.getLevel() : 0;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public long getWeaponId() {
		return weaponId;
	}

	public void setWeaponId(long weaponId) {
		this.weaponId = weaponId;
	}

	public String getWeaponCode() {
		return weaponCode;
	}

	public void setWeaponCode(String weaponCode) {
		this.weaponCode = weaponCode;
	}

	public int getEquipPackNum() {
		return equipPackNum;
	}

	public void setEquipPackNum(int equipPackNum) {
		this.equipPackNum = equipPackNum;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

}
